<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: resize   resize.js  (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>resize&nbsp; <span class="subtitle">2.9.0</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_resize.html" title="resize">resize</a>
                
                 &gt; resize.js (source view) 
        <form onsubmit="return false">
            <div id="propertysearch">
                Search: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <div id="srcout">
                        <style>
                            #doc3 .classopts { display:none; }
                        </style>
                        <div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * @description &lt;p&gt;Makes an element resizable&lt;/p&gt;</span>
<span class="cm"> * @namespace YAHOO.util</span>
<span class="cm"> * @requires yahoo, dom, dragdrop, element, event</span>
<span class="cm"> * @optional animation</span>
<span class="cm"> * @module resize</span>
<span class="cm"> */</span>
<span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">D</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">,</span>
    <span class="nx">Event</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">,</span>
    <span class="nx">Lang</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">;</span>

    <span class="cm">/**</span>
<span class="cm">     * @constructor</span>
<span class="cm">     * @class Resize</span>
<span class="cm">     * @extends YAHOO.util.Element</span>
<span class="cm">     * @description &lt;p&gt;Makes an element resizable&lt;/p&gt;</span>
<span class="cm">     * @param {String/HTMLElement} el The element to make resizable.</span>
<span class="cm">     * @param {Object} attrs Object liternal containing configuration parameters.</span>
<span class="cm">    */</span>

    <span class="kd">var</span> <span class="nx">Resize</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">el</span><span class="p">,</span> <span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Creating Resize Object&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
        <span class="kd">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="p">{</span>
            <span class="nx">element</span><span class="o">:</span> <span class="nx">el</span><span class="p">,</span>
            <span class="nx">attributes</span><span class="o">:</span> <span class="nx">config</span> <span class="o">||</span> <span class="p">{}</span>
        <span class="p">};</span>

        <span class="nx">Resize</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">constructor</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">oConfig</span><span class="p">.</span><span class="nx">element</span><span class="p">,</span> <span class="nx">oConfig</span><span class="p">.</span><span class="nx">attributes</span><span class="p">);</span>    
    <span class="p">};</span>

    <span class="cm">/**</span>
<span class="cm">    * @private</span>
<span class="cm">    * @static</span>
<span class="cm">    * @property _instances</span>
<span class="cm">    * @description Internal hash table for all resize instances</span>
<span class="cm">    * @type Object</span>
<span class="cm">    */</span> 
    <span class="nx">Resize</span><span class="p">.</span><span class="nx">_instances</span> <span class="o">=</span> <span class="p">{};</span>
    <span class="cm">/**</span>
<span class="cm">    * @static</span>
<span class="cm">    * @method getResizeById </span>
<span class="cm">    * @description Get&#39;s a resize object by the HTML id of the element associated with the Resize object.</span>
<span class="cm">    * @return {Object} The Resize Object</span>
<span class="cm">    */</span> 
    <span class="nx">Resize</span><span class="p">.</span><span class="nx">getResizeById</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">id</span><span class="p">)</span> <span class="p">{</span>
        <span class="k">if</span> <span class="p">(</span><span class="nx">Resize</span><span class="p">.</span><span class="nx">_instances</span><span class="p">[</span><span class="nx">id</span><span class="p">])</span> <span class="p">{</span>
            <span class="k">return</span> <span class="nx">Resize</span><span class="p">.</span><span class="nx">_instances</span><span class="p">[</span><span class="nx">id</span><span class="p">];</span>
        <span class="p">}</span>
        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;No Instance Found&#39;</span><span class="p">,</span> <span class="s1">&#39;error&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
        <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
    <span class="p">};</span>

    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">Resize</span><span class="p">,</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Element</span><span class="p">,</span> <span class="p">{</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_RESIZE</span>
<span class="cm">        * @description Base CSS class name</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_RESIZE</span><span class="o">:</span> <span class="s1">&#39;yui-resize&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_DRAG</span>
<span class="cm">        * @description Class name added when dragging is enabled</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_DRAG</span><span class="o">:</span> <span class="s1">&#39;yui-draggable&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_HOVER</span>
<span class="cm">        * @description Class name used for hover only handles</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_HOVER</span><span class="o">:</span> <span class="s1">&#39;yui-resize-hover&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_PROXY</span>
<span class="cm">        * @description Class name given to the proxy element</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_PROXY</span><span class="o">:</span> <span class="s1">&#39;yui-resize-proxy&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_WRAP</span>
<span class="cm">        * @description Class name given to the wrap element</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_WRAP</span><span class="o">:</span> <span class="s1">&#39;yui-resize-wrap&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_KNOB</span>
<span class="cm">        * @description Class name used to make the knob style handles</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_KNOB</span><span class="o">:</span> <span class="s1">&#39;yui-resize-knob&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_HIDDEN</span>
<span class="cm">        * @description Class name given to the wrap element to make all handles hidden</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_HIDDEN</span><span class="o">:</span> <span class="s1">&#39;yui-resize-hidden&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_HANDLE</span>
<span class="cm">        * @description Class name given to all handles, used as a base for single handle names as well.. Handle &quot;t&quot; will get this.CSS_HANDLE + &#39;-t&#39; as well as this.CSS_HANDLE</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_HANDLE</span><span class="o">:</span> <span class="s1">&#39;yui-resize-handle&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_STATUS</span>
<span class="cm">        * @description Class name given to the status element</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_STATUS</span><span class="o">:</span> <span class="s1">&#39;yui-resize-status&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_GHOST</span>
<span class="cm">        * @description Class name given to the wrap element when the ghost property is active</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_GHOST</span><span class="o">:</span> <span class="s1">&#39;yui-resize-ghost&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property CSS_RESIZING</span>
<span class="cm">        * @description Class name given to the wrap element when a resize action is taking place.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span> 
        <span class="nx">CSS_RESIZING</span><span class="o">:</span> <span class="s1">&#39;yui-resize-resizing&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _resizeEvent</span>
<span class="cm">        * @description The mouse event used to resize with</span>
<span class="cm">        * @type Event</span>
<span class="cm">        */</span> 
        <span class="nx">_resizeEvent</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property dd</span>
<span class="cm">        * @description The &lt;a href=&quot;YAHOO.util.DragDrop.html&quot;&gt;YAHOO.util.DragDrop&lt;/a&gt; instance used if draggable is true</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span> 
        <span class="nx">dd</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property browser</span>
<span class="cm">        * @description A copy of the YAHOO.env.ua property</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">browser</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">env</span><span class="p">.</span><span class="nx">ua</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _locked</span>
<span class="cm">        * @description A flag to show if the resize is locked</span>
<span class="cm">        * @type Boolean</span>
<span class="cm">        */</span>
        <span class="nx">_locked</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _positioned</span>
<span class="cm">        * @description A flag to show if the element is absolutely positioned</span>
<span class="cm">        * @type Boolean</span>
<span class="cm">        */</span>
        <span class="nx">_positioned</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _dds</span>
<span class="cm">        * @description An Object containing references to all of the &lt;a href=&quot;YAHOO.util.DragDrop.html&quot;&gt;YAHOO.util.DragDrop&lt;/a&gt; instances used for the resize handles</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">_dds</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _wrap</span>
<span class="cm">        * @description The HTML reference of the element wrapper</span>
<span class="cm">        * @type HTMLElement</span>
<span class="cm">        */</span>
        <span class="nx">_wrap</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _proxy</span>
<span class="cm">        * @description The HTML reference of the element proxy</span>
<span class="cm">        * @type HTMLElement</span>
<span class="cm">        */</span>
        <span class="nx">_proxy</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _handles</span>
<span class="cm">        * @description An object containing references to all of the resize handles.</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">_handles</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _currentHandle</span>
<span class="cm">        * @description The string identifier of the currently active handle. e.g. &#39;r&#39;, &#39;br&#39;, &#39;tl&#39;</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">_currentHandle</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _currentDD</span>
<span class="cm">        * @description A link to the currently active DD object</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">_currentDD</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _cache</span>
<span class="cm">        * @description An lookup table containing key information for the element being resized. e.g. height, width, x position, y position, etc..</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">_cache</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _active</span>
<span class="cm">        * @description Flag to show if the resize is active. Used for events.</span>
<span class="cm">        * @type Boolean</span>
<span class="cm">        */</span>
        <span class="nx">_active</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _createProxy</span>
<span class="cm">        * @description Creates the proxy element if the proxy config is true</span>
<span class="cm">        */</span>
        <span class="nx">_createProxy</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;proxy&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Creating the Proxy Element&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_PROXY</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">clientHeight</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">clientWidth</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">);</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;No proxy element, turn off animate config option&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;animate&#39;</span><span class="p">,</span> <span class="kc">false</span><span class="p">);</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _createWrap</span>
<span class="cm">        * @description Creates the wrap element if the wrap config is true. It will auto wrap the following element types: img, textarea, input, iframe, select</span>
<span class="cm">        */</span>
        <span class="nx">_createWrap</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Create the wrap element&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_positioned</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="c1">//Force wrap for elements that can&#39;t have children </span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;wrap&#39;</span><span class="p">)</span> <span class="o">===</span> <span class="kc">false</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">switch</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">tagName</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">())</span> <span class="p">{</span>
                    <span class="k">case</span> <span class="s1">&#39;img&#39;</span><span class="o">:</span>
                    <span class="k">case</span> <span class="s1">&#39;textarea&#39;</span><span class="o">:</span>
                    <span class="k">case</span> <span class="s1">&#39;input&#39;</span><span class="o">:</span>
                    <span class="k">case</span> <span class="s1">&#39;iframe&#39;</span><span class="o">:</span>
                    <span class="k">case</span> <span class="s1">&#39;select&#39;</span><span class="o">:</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Auto-wrapping the element (&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">tagName</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">+</span> <span class="s1">&#39;)&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;wrap&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                        <span class="k">break</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;wrap&#39;</span><span class="p">)</span> <span class="o">===</span> <span class="kc">true</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Creating the wrap element&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">.</span><span class="nx">id</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;_wrap&#39;</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_WRAP</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">tagName</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">==</span> <span class="s1">&#39;textarea&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;yui-resize-textarea&#39;</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;width&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">);</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;height&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">);</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;z-index&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="s1">&#39;z-index&#39;</span><span class="p">));</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="s1">&#39;z-index&#39;</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
                <span class="kd">var</span> <span class="nx">pos</span> <span class="o">=</span> <span class="nx">D</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="s1">&#39;position&#39;</span><span class="p">);</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;position&#39;</span><span class="p">,</span> <span class="p">((</span><span class="nx">pos</span> <span class="o">==</span> <span class="s1">&#39;static&#39;</span><span class="p">)</span> <span class="o">?</span> <span class="s1">&#39;relative&#39;</span> <span class="o">:</span> <span class="nx">pos</span><span class="p">));</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;top&#39;</span><span class="p">,</span> <span class="nx">D</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="s1">&#39;top&#39;</span><span class="p">));</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;left&#39;</span><span class="p">,</span> <span class="nx">D</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="s1">&#39;left&#39;</span><span class="p">));</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">D</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="s1">&#39;position&#39;</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;absolute&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_positioned</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;The element is positioned absolute&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="s1">&#39;position&#39;</span><span class="p">,</span> <span class="s1">&#39;relative&#39;</span><span class="p">);</span>
                    <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="s1">&#39;top&#39;</span><span class="p">,</span> <span class="s1">&#39;0&#39;</span><span class="p">);</span>
                    <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="s1">&#39;left&#39;</span><span class="p">,</span> <span class="s1">&#39;0&#39;</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="kd">var</span> <span class="nx">par</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">parentNode</span><span class="p">;</span>
                <span class="nx">par</span><span class="p">.</span><span class="nx">replaceChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">));</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">));</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">D</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;position&#39;</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;absolute&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_positioned</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;draggable&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_setupDragDrop</span><span class="p">();</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;hover&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HOVER</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;knobHandles&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_KNOB</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;hiddenHandles&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HIDDEN</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_RESIZE</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _setupDragDrop</span>
<span class="cm">        * @description Setup the &lt;a href=&quot;YAHOO.util.DragDrop.html&quot;&gt;YAHOO.util.DragDrop&lt;/a&gt; instance on the element</span>
<span class="cm">        */</span>
        <span class="nx">_setupDragDrop</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Setting up the dragdrop instance on the element&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_DRAG</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">dd</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">DD</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;-resize&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">dragOnly</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">useShim</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;useShim&#39;</span><span class="p">)</span> <span class="p">});</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;dragEvent&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;dragEvent&#39;</span><span class="p">,</span> <span class="nx">arguments</span><span class="p">);</span>
            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _createHandles</span>
<span class="cm">        * @description Creates the handles as specified in the config</span>
<span class="cm">        */</span>
        <span class="nx">_createHandles</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Creating the handles&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span> <span class="o">=</span> <span class="p">{};</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span> <span class="o">=</span> <span class="p">{};</span>
            <span class="kd">var</span> <span class="nx">h</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;handles&#39;</span><span class="p">);</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">h</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Creating handle position: &#39;</span> <span class="o">+</span> <span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">],</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]]</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]].</span><span class="nx">id</span> <span class="o">=</span> <span class="nx">D</span><span class="p">.</span><span class="nx">generateId</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]]);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]].</span><span class="nx">className</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39; &#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
                <span class="kd">var</span> <span class="nx">k</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                <span class="nx">k</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-inner-&#39;</span> <span class="o">+</span> <span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]].</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">k</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]]);</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]],</span> <span class="s1">&#39;mouseover&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handleMouseOver</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]],</span> <span class="s1">&#39;mouseout&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handleMouseOut</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]]</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">DragDrop</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]],</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;-handle-&#39;</span> <span class="o">+</span> <span class="nx">h</span><span class="p">,</span> <span class="p">{</span> <span class="nx">useShim</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;useShim&#39;</span><span class="p">)</span> <span class="p">});</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]].</span><span class="nx">setPadding</span><span class="p">(</span><span class="mi">15</span><span class="p">,</span> <span class="mi">15</span><span class="p">,</span> <span class="mi">15</span><span class="p">,</span> <span class="mi">15</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]].</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;startDragEvent&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handleStartDrag</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]],</span> <span class="k">this</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]].</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;mouseDownEvent&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handleMouseDown</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">[</span><span class="nx">h</span><span class="p">[</span><span class="nx">i</span><span class="p">]],</span> <span class="k">this</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Creating the Status box&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_status</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_STATUS</span><span class="p">;</span>
            <span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">insertBefore</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">,</span> <span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">firstChild</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _ieSelectFix</span>
<span class="cm">        * @description The function we use as the onselectstart handler when we start a drag in Internet Explorer</span>
<span class="cm">        */</span>
        <span class="nx">_ieSelectFix</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _ieSelectBack</span>
<span class="cm">        * @description We will hold a copy of the current &quot;onselectstart&quot; method on this property, and reset it after we are done using it.</span>
<span class="cm">        */</span>
        <span class="nx">_ieSelectBack</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _setAutoRatio</span>
<span class="cm">        * @param {Event} ev A mouse event.</span>
<span class="cm">        * @description This method checks to see if the &quot;autoRatio&quot; config is set. If it is, we will check to see if the &quot;Shift Key&quot; is pressed. If so, we will set the config ratio to true.</span>
<span class="cm">        */</span>
        <span class="nx">_setAutoRatio</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;autoRatio&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Setting up AutoRatio&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span> <span class="o">&amp;&amp;</span> <span class="nx">ev</span><span class="p">.</span><span class="nx">shiftKey</span><span class="p">)</span> <span class="p">{</span>
                    <span class="c1">//Shift Pressed</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Shift key presses, turning on ratio&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;ratio&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Resetting ratio back to default&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;ratio&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_configs</span><span class="p">.</span><span class="nx">ratio</span><span class="p">.</span><span class="nx">_initialConfig</span><span class="p">.</span><span class="nx">value</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handleMouseDown</span>
<span class="cm">        * @param {Event} ev A mouse event.</span>
<span class="cm">        * @description This method preps the autoRatio on MouseDown.</span>
<span class="cm">        */</span>
        <span class="nx">_handleMouseDown</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_locked</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Resize Locked&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">D</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;position&#39;</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;absolute&#39;</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_positioned</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_setAutoRatio</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_ieSelectBack</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">onselectstart</span><span class="p">;</span>
                <span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">onselectstart</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_ieSelectFix</span><span class="p">;</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handleMouseOver</span>
<span class="cm">        * @param {Event} ev A mouse event.</span>
<span class="cm">        * @description Adds CSS class names to the handles</span>
<span class="cm">        */</span>
        <span class="nx">_handleMouseOver</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_locked</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Resize Locked&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_RESIZE</span><span class="p">);</span>

            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;hover&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HOVER</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">tar</span> <span class="o">=</span> <span class="nx">Event</span><span class="p">.</span><span class="nx">getTarget</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">D</span><span class="p">.</span><span class="nx">hasClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">tar</span> <span class="o">=</span> <span class="nx">tar</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">D</span><span class="p">.</span><span class="nx">hasClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_active</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-active&#39;</span><span class="p">);</span>
                <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="k">in</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">,</span> <span class="nx">i</span><span class="p">))</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">i</span><span class="p">]</span> <span class="o">==</span> <span class="nx">tar</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="nx">i</span> <span class="o">+</span> <span class="s1">&#39;-active&#39;</span><span class="p">);</span>
                            <span class="k">break</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>

            <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_RESIZE</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handleMouseOut</span>
<span class="cm">        * @param {Event} ev A mouse event.</span>
<span class="cm">        * @description Removes CSS class names to the handles</span>
<span class="cm">        */</span>
        <span class="nx">_handleMouseOut</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_RESIZE</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;hover&#39;</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_active</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HOVER</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">tar</span> <span class="o">=</span> <span class="nx">Event</span><span class="p">.</span><span class="nx">getTarget</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">D</span><span class="p">.</span><span class="nx">hasClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">tar</span> <span class="o">=</span> <span class="nx">tar</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">D</span><span class="p">.</span><span class="nx">hasClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_active</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-active&#39;</span><span class="p">);</span>
                <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="k">in</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">,</span> <span class="nx">i</span><span class="p">))</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">i</span><span class="p">]</span> <span class="o">==</span> <span class="nx">tar</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="nx">i</span> <span class="o">+</span> <span class="s1">&#39;-active&#39;</span><span class="p">);</span>
                            <span class="k">break</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_RESIZE</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handleStartDrag</span>
<span class="cm">        * @param {Object} args The args passed from the CustomEvent.</span>
<span class="cm">        * @param {Object} dd The &lt;a href=&quot;YAHOO.util.DragDrop.html&quot;&gt;YAHOO.util.DragDrop&lt;/a&gt; object we are working with.</span>
<span class="cm">        * @description Resizes the proxy, sets up the &lt;a href=&quot;YAHOO.util.DragDrop.html&quot;&gt;YAHOO.util.DragDrop&lt;/a&gt; handlers, updates the status div and preps the cache</span>
<span class="cm">        */</span>
        <span class="nx">_handleStartDrag</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">args</span><span class="p">,</span> <span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;startDrag&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">tar</span> <span class="o">=</span> <span class="nx">dd</span><span class="p">.</span><span class="nx">getDragEl</span><span class="p">();</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">D</span><span class="p">.</span><span class="nx">hasClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">D</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;position&#39;</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;absolute&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_positioned</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_active</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_currentDD</span> <span class="o">=</span> <span class="nx">dd</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Activate proxy element&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">visibility</span> <span class="o">=</span> <span class="s1">&#39;visible&#39;</span><span class="p">;</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">zIndex</span> <span class="o">=</span> <span class="s1">&#39;1000&#39;</span><span class="p">;</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">clientHeight</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">clientWidth</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                <span class="p">}</span>

                <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="k">in</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">,</span> <span class="nx">i</span><span class="p">))</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">i</span><span class="p">]</span> <span class="o">==</span> <span class="nx">tar</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_currentHandle</span> <span class="o">=</span> <span class="nx">i</span><span class="p">;</span>
                            <span class="kd">var</span> <span class="nx">handle</span> <span class="o">=</span> <span class="s1">&#39;_handle_for_&#39;</span> <span class="o">+</span> <span class="nx">i</span><span class="p">;</span>
                            <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="nx">i</span> <span class="o">+</span> <span class="s1">&#39;-active&#39;</span><span class="p">);</span>
                            <span class="nx">dd</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;dragEvent&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">[</span><span class="nx">handle</span><span class="p">],</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                            <span class="nx">dd</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;mouseUpEvent&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handleMouseUp</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Adding DragEvents to: &#39;</span> <span class="o">+</span> <span class="nx">i</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                            <span class="k">break</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>


                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">tar</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-active&#39;</span><span class="p">);</span>

                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;proxy&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Posiiton Proxy Element&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="kd">var</span> <span class="nx">xy</span> <span class="o">=</span> <span class="nx">D</span><span class="p">.</span><span class="nx">getXY</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">));</span>
                    <span class="nx">D</span><span class="p">.</span><span class="nx">setXY</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">,</span> <span class="nx">xy</span><span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;ghost&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Add Ghost Class&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CSS_GHOST</span><span class="p">);</span>
                    <span class="p">}</span>
                <span class="p">}</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_RESIZING</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_setCache</span><span class="p">();</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_updateStatus</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">top</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">left</span><span class="p">);</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Firing startResize Event&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;startResize&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;startresize&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">});</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _setCache</span>
<span class="cm">        * @description Sets up the this._cache hash table.</span>
<span class="cm">        */</span>
        <span class="nx">_setCache</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Setting up property cache&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">xy</span> <span class="o">=</span> <span class="nx">D</span><span class="p">.</span><span class="nx">getXY</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">);</span>
            <span class="nx">D</span><span class="p">.</span><span class="nx">setXY</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">xy</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;clientHeight&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;clientWidth&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">top</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">xy</span><span class="p">[</span><span class="mi">1</span><span class="p">];</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">left</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">xy</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">top</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">xy</span><span class="p">[</span><span class="mi">1</span><span class="p">];</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">left</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">xy</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handleMouseUp</span>
<span class="cm">        * @param {Event} ev A mouse event.</span>
<span class="cm">        * @description Cleans up listeners, hides proxy element and removes class names.</span>
<span class="cm">        */</span>
        <span class="nx">_handleMouseUp</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_active</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>

            <span class="kd">var</span> <span class="nx">handle</span> <span class="o">=</span> <span class="s1">&#39;_handle_for_&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">_currentHandle</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_currentDD</span><span class="p">.</span><span class="nx">unsubscribe</span><span class="p">(</span><span class="s1">&#39;dragEvent&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">[</span><span class="nx">handle</span><span class="p">],</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_currentDD</span><span class="p">.</span><span class="nx">unsubscribe</span><span class="p">(</span><span class="s1">&#39;mouseUpEvent&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handleMouseUp</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>

            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Hide Proxy Element&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">visibility</span> <span class="o">=</span> <span class="s1">&#39;hidden&#39;</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">zIndex</span> <span class="o">=</span> <span class="s1">&#39;-1&#39;</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;setSize&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Setting Size&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">resize</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">top</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">left</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Firing Resize Event&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;resize&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">ev</span><span class="o">:</span> <span class="s1">&#39;resize&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">,</span> <span class="nx">height</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span> <span class="nx">width</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="nx">top</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">top</span><span class="p">,</span> <span class="nx">left</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">left</span> <span class="p">});</span>
                <span class="p">}</span>

                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;ghost&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Removing Ghost Class&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CSS_GHOST</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>

            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;hover&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HOVER</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">,</span> <span class="s1">&#39;display&#39;</span><span class="p">,</span> <span class="s1">&#39;none&#39;</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Resetting IE onselectstart function&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">onselectstart</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_ieSelectBack</span><span class="p">;</span>
            <span class="p">}</span>

            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_RESIZE</span><span class="p">);</span>
            <span class="p">}</span>

            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="k">in</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">,</span> <span class="nx">i</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">i</span><span class="p">],</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-active&#39;</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;hover&#39;</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_active</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HOVER</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_RESIZING</span><span class="p">);</span>

            <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_currentHandle</span><span class="p">],</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">_currentHandle</span> <span class="o">+</span> <span class="s1">&#39;-active&#39;</span><span class="p">);</span>
            <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_currentHandle</span><span class="p">],</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_HANDLE</span> <span class="o">+</span> <span class="s1">&#39;-active&#39;</span><span class="p">);</span>

            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_RESIZE</span><span class="p">);</span>
            <span class="p">}</span>

            <span class="k">this</span><span class="p">.</span><span class="nx">_resizeEvent</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_currentHandle</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
            
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;animate&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="p">}</span>

            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Firing endResize Event&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;endResize&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">ev</span><span class="o">:</span> <span class="s1">&#39;endResize&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">,</span> <span class="nx">height</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span> <span class="nx">width</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="nx">top</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">top</span><span class="p">,</span> <span class="nx">left</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">left</span> <span class="p">});</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _setRatio</span>
<span class="cm">        * @param {Number} h The height offset.</span>
<span class="cm">        * @param {Number} w The with offset.</span>
<span class="cm">        * @param {Number} t The top offset.</span>
<span class="cm">        * @param {Number} l The left offset.</span>
<span class="cm">        * @description Using the Height, Width, Top &amp; Left, it recalcuates them based on the original element size.</span>
<span class="cm">        * @return {Array} The new Height, Width, Top &amp; Left settings</span>
<span class="cm">        */</span>
        <span class="nx">_setRatio</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">h</span><span class="p">,</span> <span class="nx">w</span><span class="p">,</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">l</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Setting Ratio&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">oh</span> <span class="o">=</span> <span class="nx">h</span><span class="p">,</span> <span class="nx">ow</span> <span class="o">=</span> <span class="nx">w</span><span class="p">;</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;ratio&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">orgH</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span>
                    <span class="nx">orgW</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span>
                    <span class="nx">nh</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">),</span>
                    <span class="nx">nw</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">),</span>
                    <span class="nx">maxH</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxHeight&#39;</span><span class="p">),</span>
                    <span class="nx">minH</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minHeight&#39;</span><span class="p">),</span>
                    <span class="nx">maxW</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxWidth&#39;</span><span class="p">),</span>
                    <span class="nx">minW</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minWidth&#39;</span><span class="p">);</span>

                <span class="k">switch</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_currentHandle</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">case</span> <span class="s1">&#39;l&#39;</span><span class="o">:</span>
                        <span class="nx">h</span> <span class="o">=</span> <span class="nx">nh</span> <span class="o">*</span> <span class="p">(</span><span class="nx">w</span> <span class="o">/</span> <span class="nx">nw</span><span class="p">);</span>
                        <span class="nx">h</span> <span class="o">=</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">min</span><span class="p">(</span><span class="nb">Math</span><span class="p">.</span><span class="nx">max</span><span class="p">(</span><span class="nx">minH</span><span class="p">,</span> <span class="nx">h</span><span class="p">),</span> <span class="nx">maxH</span><span class="p">);</span>                        
                        <span class="nx">w</span> <span class="o">=</span> <span class="nx">nw</span> <span class="o">*</span> <span class="p">(</span><span class="nx">h</span> <span class="o">/</span> <span class="nx">nh</span><span class="p">);</span>
                        <span class="nx">t</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">top</span> <span class="o">-</span> <span class="p">(</span><span class="o">-</span><span class="p">((</span><span class="nx">nh</span> <span class="o">-</span> <span class="nx">h</span><span class="p">)</span> <span class="o">/</span> <span class="mi">2</span><span class="p">)));</span>
                        <span class="nx">l</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">left</span> <span class="o">-</span> <span class="p">(</span><span class="o">-</span><span class="p">((</span><span class="nx">nw</span> <span class="o">-</span> <span class="nx">w</span><span class="p">))));</span>
                        <span class="k">break</span><span class="p">;</span>
                    <span class="k">case</span> <span class="s1">&#39;r&#39;</span><span class="o">:</span>
                        <span class="nx">h</span> <span class="o">=</span> <span class="nx">nh</span> <span class="o">*</span> <span class="p">(</span><span class="nx">w</span> <span class="o">/</span> <span class="nx">nw</span><span class="p">);</span>
                        <span class="nx">h</span> <span class="o">=</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">min</span><span class="p">(</span><span class="nb">Math</span><span class="p">.</span><span class="nx">max</span><span class="p">(</span><span class="nx">minH</span><span class="p">,</span> <span class="nx">h</span><span class="p">),</span> <span class="nx">maxH</span><span class="p">);</span>                        
                        <span class="nx">w</span> <span class="o">=</span> <span class="nx">nw</span> <span class="o">*</span> <span class="p">(</span><span class="nx">h</span> <span class="o">/</span> <span class="nx">nh</span><span class="p">);</span>
                        <span class="nx">t</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">top</span> <span class="o">-</span> <span class="p">(</span><span class="o">-</span><span class="p">((</span><span class="nx">nh</span> <span class="o">-</span> <span class="nx">h</span><span class="p">)</span> <span class="o">/</span> <span class="mi">2</span><span class="p">)));</span>
                        <span class="k">break</span><span class="p">;</span>
                    <span class="k">case</span> <span class="s1">&#39;t&#39;</span><span class="o">:</span>
                        <span class="nx">w</span> <span class="o">=</span> <span class="nx">nw</span> <span class="o">*</span> <span class="p">(</span><span class="nx">h</span> <span class="o">/</span> <span class="nx">nh</span><span class="p">);</span>
                        <span class="nx">h</span> <span class="o">=</span> <span class="nx">nh</span> <span class="o">*</span> <span class="p">(</span><span class="nx">w</span> <span class="o">/</span> <span class="nx">nw</span><span class="p">);</span>
                        <span class="nx">l</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">left</span> <span class="o">-</span> <span class="p">(</span><span class="o">-</span><span class="p">((</span><span class="nx">nw</span> <span class="o">-</span> <span class="nx">w</span><span class="p">)</span> <span class="o">/</span> <span class="mi">2</span><span class="p">)));</span>
                        <span class="nx">t</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">top</span> <span class="o">-</span> <span class="p">(</span><span class="o">-</span><span class="p">((</span><span class="nx">nh</span> <span class="o">-</span> <span class="nx">h</span><span class="p">))));</span>
                        <span class="k">break</span><span class="p">;</span>
                    <span class="k">case</span> <span class="s1">&#39;b&#39;</span><span class="o">:</span>
                        <span class="nx">w</span> <span class="o">=</span> <span class="nx">nw</span> <span class="o">*</span> <span class="p">(</span><span class="nx">h</span> <span class="o">/</span> <span class="nx">nh</span><span class="p">);</span>
                        <span class="nx">h</span> <span class="o">=</span> <span class="nx">nh</span> <span class="o">*</span> <span class="p">(</span><span class="nx">w</span> <span class="o">/</span> <span class="nx">nw</span><span class="p">);</span>
                        <span class="nx">l</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">left</span> <span class="o">-</span> <span class="p">(</span><span class="o">-</span><span class="p">((</span><span class="nx">nw</span> <span class="o">-</span> <span class="nx">w</span><span class="p">)</span> <span class="o">/</span> <span class="mi">2</span><span class="p">)));</span>
                        <span class="k">break</span><span class="p">;</span>
                    <span class="k">case</span> <span class="s1">&#39;bl&#39;</span><span class="o">:</span>
                        <span class="nx">h</span> <span class="o">=</span> <span class="nx">nh</span> <span class="o">*</span> <span class="p">(</span><span class="nx">w</span> <span class="o">/</span> <span class="nx">nw</span><span class="p">);</span>
                        <span class="nx">w</span> <span class="o">=</span> <span class="nx">nw</span> <span class="o">*</span> <span class="p">(</span><span class="nx">h</span> <span class="o">/</span> <span class="nx">nh</span><span class="p">);</span>
                        <span class="nx">l</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">left</span> <span class="o">-</span> <span class="p">(</span><span class="o">-</span><span class="p">((</span><span class="nx">nw</span> <span class="o">-</span> <span class="nx">w</span><span class="p">))));</span>
                        <span class="k">break</span><span class="p">;</span>
                    <span class="k">case</span> <span class="s1">&#39;br&#39;</span><span class="o">:</span>
                        <span class="nx">h</span> <span class="o">=</span> <span class="nx">nh</span> <span class="o">*</span> <span class="p">(</span><span class="nx">w</span> <span class="o">/</span> <span class="nx">nw</span><span class="p">);</span>
                        <span class="nx">w</span> <span class="o">=</span> <span class="nx">nw</span> <span class="o">*</span> <span class="p">(</span><span class="nx">h</span> <span class="o">/</span> <span class="nx">nh</span><span class="p">);</span>
                        <span class="k">break</span><span class="p">;</span>
                    <span class="k">case</span> <span class="s1">&#39;tl&#39;</span><span class="o">:</span>
                        <span class="nx">h</span> <span class="o">=</span> <span class="nx">nh</span> <span class="o">*</span> <span class="p">(</span><span class="nx">w</span> <span class="o">/</span> <span class="nx">nw</span><span class="p">);</span>
                        <span class="nx">w</span> <span class="o">=</span> <span class="nx">nw</span> <span class="o">*</span> <span class="p">(</span><span class="nx">h</span> <span class="o">/</span> <span class="nx">nh</span><span class="p">);</span>
                        <span class="nx">l</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">left</span> <span class="o">-</span> <span class="p">(</span><span class="o">-</span><span class="p">((</span><span class="nx">nw</span> <span class="o">-</span> <span class="nx">w</span><span class="p">))));</span>
                        <span class="nx">t</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">top</span> <span class="o">-</span> <span class="p">(</span><span class="o">-</span><span class="p">((</span><span class="nx">nh</span> <span class="o">-</span> <span class="nx">h</span><span class="p">))));</span>
                        <span class="k">break</span><span class="p">;</span>
                    <span class="k">case</span> <span class="s1">&#39;tr&#39;</span><span class="o">:</span>
                        <span class="nx">h</span> <span class="o">=</span> <span class="nx">nh</span> <span class="o">*</span> <span class="p">(</span><span class="nx">w</span> <span class="o">/</span> <span class="nx">nw</span><span class="p">);</span>
                        <span class="nx">w</span> <span class="o">=</span> <span class="nx">nw</span> <span class="o">*</span> <span class="p">(</span><span class="nx">h</span> <span class="o">/</span> <span class="nx">nh</span><span class="p">);</span>
                        <span class="nx">l</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">left</span><span class="p">);</span>
                        <span class="nx">t</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">top</span> <span class="o">-</span> <span class="p">(</span><span class="o">-</span><span class="p">((</span><span class="nx">nh</span> <span class="o">-</span> <span class="nx">h</span><span class="p">))));</span>
                        <span class="k">break</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="nx">oh</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_checkHeight</span><span class="p">(</span><span class="nx">h</span><span class="p">);</span>
                <span class="nx">ow</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_checkWidth</span><span class="p">(</span><span class="nx">w</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">((</span><span class="nx">oh</span> <span class="o">!=</span> <span class="nx">h</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">ow</span> <span class="o">!=</span> <span class="nx">w</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">t</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
                    <span class="nx">l</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">oh</span> <span class="o">!=</span> <span class="nx">h</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">ow</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">ow</span> <span class="o">!=</span> <span class="nx">w</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">oh</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="p">[</span><span class="nx">oh</span><span class="p">,</span> <span class="nx">ow</span><span class="p">,</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">l</span><span class="p">];</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _updateStatus</span>
<span class="cm">        * @param {Number} h The new height setting.</span>
<span class="cm">        * @param {Number} w The new width setting.</span>
<span class="cm">        * @param {Number} t The new top setting.</span>
<span class="cm">        * @param {Number} l The new left setting.</span>
<span class="cm">        * @description Using the Height, Width, Top &amp; Left, it updates the status element with the elements sizes.</span>
<span class="cm">        */</span>
        <span class="nx">_updateStatus</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">h</span><span class="p">,</span> <span class="nx">w</span><span class="p">,</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">l</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_resizeEvent</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="o">!</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isString</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_resizeEvent</span><span class="p">)))</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Updating Status Box&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="nx">h</span> <span class="o">=</span> <span class="p">((</span><span class="nx">h</span> <span class="o">===</span> <span class="mi">0</span><span class="p">)</span> <span class="o">?</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">height</span> <span class="o">:</span> <span class="nx">h</span><span class="p">);</span>
                <span class="nx">w</span> <span class="o">=</span> <span class="p">((</span><span class="nx">w</span> <span class="o">===</span> <span class="mi">0</span><span class="p">)</span> <span class="o">?</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">width</span> <span class="o">:</span> <span class="nx">w</span><span class="p">);</span>
                <span class="kd">var</span> <span class="nx">h1</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">),</span>
                    <span class="nx">w1</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">);</span>
                
                <span class="k">if</span> <span class="p">(</span><span class="nb">isNaN</span><span class="p">(</span><span class="nx">h1</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">h1</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">h</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nb">isNaN</span><span class="p">(</span><span class="nx">w1</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">w1</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">w</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="kd">var</span> <span class="nx">diffH</span> <span class="o">=</span> <span class="p">(</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">h</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">-</span> <span class="nx">h1</span><span class="p">);</span>
                <span class="kd">var</span> <span class="nx">diffW</span> <span class="o">=</span> <span class="p">(</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">w</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">-</span> <span class="nx">w1</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">offsetHeight</span> <span class="o">=</span> <span class="nx">diffH</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">offsetWidth</span> <span class="o">=</span> <span class="nx">diffW</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;status&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Showing Status Box&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="nx">D</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">,</span> <span class="s1">&#39;display&#39;</span><span class="p">,</span> <span class="s1">&#39;inline&#39;</span><span class="p">);</span>
                    <span class="c1">//This will cause IE8 to crash if the status box is hidden..</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;&lt;strong&gt;&#39;</span> <span class="o">+</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">h</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39; x &#39;</span> <span class="o">+</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">w</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;&lt;/strong&gt;&lt;em&gt;&#39;</span> <span class="o">+</span> <span class="p">((</span><span class="nx">diffH</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="o">?</span> <span class="s1">&#39;+&#39;</span> <span class="o">:</span> <span class="s1">&#39;&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="nx">diffH</span> <span class="o">+</span> <span class="s1">&#39; x &#39;</span> <span class="o">+</span> <span class="p">((</span><span class="nx">diffW</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="o">?</span> <span class="s1">&#39;+&#39;</span> <span class="o">:</span> <span class="s1">&#39;&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="nx">diffW</span> <span class="o">+</span> <span class="s1">&#39;&lt;/em&gt;&#39;</span><span class="p">;</span>
                    <span class="nx">D</span><span class="p">.</span><span class="nx">setXY</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">,</span> <span class="p">[</span><span class="nx">Event</span><span class="p">.</span><span class="nx">getPageX</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_resizeEvent</span><span class="p">)</span> <span class="o">+</span> <span class="mi">12</span><span class="p">,</span> <span class="nx">Event</span><span class="p">.</span><span class="nx">getPageY</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_resizeEvent</span><span class="p">)</span> <span class="o">+</span> <span class="mi">12</span><span class="p">]);</span>
                <span class="p">}</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @method lock</span>
<span class="cm">        * @description Lock the resize so it can&#39;t be resized</span>
<span class="cm">        * @param {Boolean} dd If the draggable config is set, lock it too</span>
<span class="cm">        * @return {&lt;a href=&quot;YAHOO.util.Resize.html&quot;&gt;YAHOO.util.Resize&lt;/a&gt;} The Resize instance</span>
<span class="cm">        */</span>
        <span class="nx">lock</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_locked</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">dd</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;yui-draggable&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">lock</span><span class="p">();</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @method unlock</span>
<span class="cm">        * @description Unlock the resize so it can be resized</span>
<span class="cm">        * @param {Boolean} dd If the draggable config is set, unlock it too</span>
<span class="cm">        * @return {&lt;a href=&quot;YAHOO.util.Resize.html&quot;&gt;YAHOO.util.Resize&lt;/a&gt;} The Resize instance</span>
<span class="cm">        */</span>
        <span class="nx">unlock</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_locked</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">dd</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;yui-draggable&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">unlock</span><span class="p">();</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @method isLocked</span>
<span class="cm">        * @description Check the locked status of the resize instance</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>
        <span class="nx">isLocked</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">_locked</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @method reset</span>
<span class="cm">        * @description Resets the element to is start state.</span>
<span class="cm">        * @return {&lt;a href=&quot;YAHOO.util.Resize.html&quot;&gt;YAHOO.util.Resize&lt;/a&gt;} The Resize instance</span>
<span class="cm">        */</span>
        <span class="nx">reset</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Resetting to cached sizes and position&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">resize</span><span class="p">(</span><span class="kc">null</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">top</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">start</span><span class="p">.</span><span class="nx">left</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method resize</span>
<span class="cm">        * @param {Event} ev The mouse event.</span>
<span class="cm">        * @param {Number} h The new height setting.</span>
<span class="cm">        * @param {Number} w The new width setting.</span>
<span class="cm">        * @param {Number} t The new top setting.</span>
<span class="cm">        * @param {Number} l The new left setting.</span>
<span class="cm">        * @param {Boolean} force Resize the element (used for proxy resize).</span>
<span class="cm">        * @param {Boolean} silent Don&#39;t fire the beforeResize Event.</span>
<span class="cm">        * @description Resizes the element, wrapper or proxy based on the data from the handlers.</span>
<span class="cm">        * @return {&lt;a href=&quot;YAHOO.util.Resize.html&quot;&gt;YAHOO.util.Resize&lt;/a&gt;} The Resize instance</span>
<span class="cm">        */</span>
        <span class="nx">resize</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">h</span><span class="p">,</span> <span class="nx">w</span><span class="p">,</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">l</span><span class="p">,</span> <span class="nx">force</span><span class="p">,</span> <span class="nx">silent</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_locked</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Resize Locked&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Resize: &#39;</span> <span class="o">+</span> <span class="nx">h</span> <span class="o">+</span> <span class="s1">&#39;,&#39;</span> <span class="o">+</span> <span class="nx">w</span> <span class="o">+</span> <span class="s1">&#39;,&#39;</span> <span class="o">+</span> <span class="nx">t</span> <span class="o">+</span> <span class="s1">&#39;,&#39;</span> <span class="o">+</span> <span class="nx">l</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_resizeEvent</span> <span class="o">=</span> <span class="nx">ev</span><span class="p">;</span>
            <span class="kd">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="nx">anim</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;animate&#39;</span><span class="p">),</span> <span class="nx">set</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="nx">force</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">;</span>
                <span class="nx">anim</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_setAutoRatio</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_positioned</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">t</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">top</span> <span class="o">-</span> <span class="nx">t</span><span class="p">;</span>
                    <span class="nx">l</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">left</span> <span class="o">-</span> <span class="nx">l</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            
            
            <span class="kd">var</span> <span class="nx">ratio</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setRatio</span><span class="p">(</span><span class="nx">h</span><span class="p">,</span> <span class="nx">w</span><span class="p">,</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">l</span><span class="p">);</span>
            <span class="nx">h</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">ratio</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="mi">10</span><span class="p">);</span>
            <span class="nx">w</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">ratio</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="mi">10</span><span class="p">);</span>
            <span class="nx">t</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">ratio</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="mi">10</span><span class="p">);</span>
            <span class="nx">l</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">ratio</span><span class="p">[</span><span class="mi">3</span><span class="p">],</span> <span class="mi">10</span><span class="p">);</span>
            
            <span class="k">if</span> <span class="p">(</span><span class="nx">t</span> <span class="o">==</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
                <span class="c1">//No Offset, get from cache</span>
                <span class="nx">t</span> <span class="o">=</span> <span class="nx">D</span><span class="p">.</span><span class="nx">getY</span><span class="p">(</span><span class="nx">el</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">l</span> <span class="o">==</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
                <span class="c1">//No Offset, get from cache</span>
                <span class="nx">l</span> <span class="o">=</span> <span class="nx">D</span><span class="p">.</span><span class="nx">getX</span><span class="p">(</span><span class="nx">el</span><span class="p">);</span>
            <span class="p">}</span>

            

            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_positioned</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span> <span class="o">&amp;&amp;</span> <span class="nx">force</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">anim</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">top</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">top</span><span class="p">;</span>
                        <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">left</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">left</span><span class="p">;</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="nx">t</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">top</span><span class="p">;</span>
                        <span class="nx">l</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">left</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;ratio&#39;</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">t</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">top</span> <span class="o">+</span> <span class="o">-</span><span class="p">(</span><span class="nx">t</span><span class="p">);</span>
                        <span class="nx">l</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">left</span> <span class="o">+</span> <span class="o">-</span><span class="p">(</span><span class="nx">l</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">t</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minY&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">t</span> <span class="o">&lt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minY&#39;</span><span class="p">))</span> <span class="p">{</span>
                                <span class="nx">t</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minY&#39;</span><span class="p">);</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxY&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">t</span> <span class="o">&gt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxY&#39;</span><span class="p">))</span> <span class="p">{</span>
                                <span class="nx">t</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxY&#39;</span><span class="p">);</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">l</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minX&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">l</span> <span class="o">&lt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minX&#39;</span><span class="p">))</span> <span class="p">{</span>
                                <span class="nx">l</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minX&#39;</span><span class="p">);</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxX&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">((</span><span class="nx">l</span> <span class="o">+</span> <span class="nx">w</span><span class="p">)</span> <span class="o">&gt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxX&#39;</span><span class="p">))</span> <span class="p">{</span>
                                <span class="nx">l</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxX&#39;</span><span class="p">)</span> <span class="o">-</span> <span class="nx">w</span><span class="p">);</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">silent</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;beforeResize&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                <span class="kd">var</span> <span class="nx">beforeReturn</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;beforeResize&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">ev</span><span class="o">:</span> <span class="s1">&#39;beforeResize&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">,</span> <span class="nx">height</span><span class="o">:</span> <span class="nx">h</span><span class="p">,</span> <span class="nx">width</span><span class="o">:</span> <span class="nx">w</span><span class="p">,</span> <span class="nx">top</span><span class="o">:</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">left</span><span class="o">:</span> <span class="nx">l</span> <span class="p">});</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">beforeReturn</span> <span class="o">===</span> <span class="kc">false</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Resized cancelled because befireResize returned false&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>

            <span class="k">this</span><span class="p">.</span><span class="nx">_updateStatus</span><span class="p">(</span><span class="nx">h</span><span class="p">,</span> <span class="nx">w</span><span class="p">,</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">l</span><span class="p">);</span>


            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_positioned</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span> <span class="o">&amp;&amp;</span> <span class="nx">force</span><span class="p">)</span> <span class="p">{</span>
                    <span class="c1">//Do nothing</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">t</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">D</span><span class="p">.</span><span class="nx">setY</span><span class="p">(</span><span class="nx">el</span><span class="p">,</span> <span class="nx">t</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">top</span> <span class="o">=</span> <span class="nx">t</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">l</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">D</span><span class="p">.</span><span class="nx">setX</span><span class="p">(</span><span class="nx">el</span><span class="p">,</span> <span class="nx">l</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">left</span> <span class="o">=</span> <span class="nx">l</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">h</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">anim</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">set</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span> <span class="o">&amp;&amp;</span> <span class="nx">force</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;setSize&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="nx">set</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">set</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="nx">h</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">((</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span> <span class="o">&amp;&amp;</span> <span class="nx">force</span><span class="p">)</span> <span class="o">||</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span> <span class="o">!=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="nx">h</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="nx">h</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">w</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="nx">w</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">anim</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">set</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span> <span class="o">&amp;&amp;</span> <span class="nx">force</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;setSize&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="nx">set</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">set</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="nx">w</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">((</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span> <span class="o">&amp;&amp;</span> <span class="nx">force</span><span class="p">)</span> <span class="o">||</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span> <span class="o">!=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">style</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="nx">w</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">anim</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Anim</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">_anim</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Anim</span><span class="p">(</span><span class="nx">el</span><span class="p">,</span> <span class="p">{</span>
                        <span class="nx">height</span><span class="o">:</span> <span class="p">{</span>
                            <span class="nx">to</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span>
                        <span class="p">},</span>
                        <span class="nx">width</span><span class="o">:</span> <span class="p">{</span>
                            <span class="nx">to</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span>
                        <span class="p">}</span>
                    <span class="p">},</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;animateDuration&#39;</span><span class="p">),</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;animateEasing&#39;</span><span class="p">));</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_positioned</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">t</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">_anim</span><span class="p">.</span><span class="nx">attributes</span><span class="p">.</span><span class="nx">top</span> <span class="o">=</span> <span class="p">{</span>
                                <span class="nx">to</span><span class="o">:</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">t</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span>
                            <span class="p">};</span>
                        <span class="p">}</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">l</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">_anim</span><span class="p">.</span><span class="nx">attributes</span><span class="p">.</span><span class="nx">left</span> <span class="o">=</span> <span class="p">{</span>
                                <span class="nx">to</span><span class="o">:</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">l</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span>
                            <span class="p">};</span>
                        <span class="p">}</span>
                    <span class="p">}</span>

                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span> <span class="o">!=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">_anim</span><span class="p">.</span><span class="nx">onTween</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span><span class="p">;</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">style</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">width</span><span class="p">;</span>
                        <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                    <span class="p">}</span>

                    <span class="nx">_anim</span><span class="p">.</span><span class="nx">onComplete</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Animation onComplete fired&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">,</span> <span class="nx">h</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">,</span> <span class="nx">w</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;resize&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">ev</span><span class="o">:</span> <span class="s1">&#39;resize&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">,</span> <span class="nx">height</span><span class="o">:</span> <span class="nx">h</span><span class="p">,</span> <span class="nx">width</span><span class="o">:</span> <span class="nx">w</span><span class="p">,</span> <span class="nx">top</span><span class="o">:</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">left</span><span class="o">:</span> <span class="nx">l</span> <span class="p">});</span>
                    <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                    <span class="nx">_anim</span><span class="p">.</span><span class="nx">animate</span><span class="p">();</span>

                <span class="p">}</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="nx">force</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;proxyResize&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;proxyResize&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">ev</span><span class="o">:</span> <span class="s1">&#39;proxyresize&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">,</span> <span class="nx">height</span><span class="o">:</span> <span class="nx">h</span><span class="p">,</span> <span class="nx">width</span><span class="o">:</span> <span class="nx">w</span><span class="p">,</span> <span class="nx">top</span><span class="o">:</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">left</span><span class="o">:</span> <span class="nx">l</span> <span class="p">});</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;resize&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;resize&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">ev</span><span class="o">:</span> <span class="s1">&#39;resize&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">,</span> <span class="nx">height</span><span class="o">:</span> <span class="nx">h</span><span class="p">,</span> <span class="nx">width</span><span class="o">:</span> <span class="nx">w</span><span class="p">,</span> <span class="nx">top</span><span class="o">:</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">left</span><span class="o">:</span> <span class="nx">l</span> <span class="p">});</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handle_for_br</span>
<span class="cm">        * @param {Object} args The arguments from the CustomEvent.</span>
<span class="cm">        * @description Handles the sizes for the Bottom Right handle.</span>
<span class="cm">        */</span>
        <span class="nx">_handle_for_br</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Handle BR&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newW</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setWidth</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newH</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setHeight</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">resize</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="nx">newH</span><span class="p">,</span> <span class="nx">newW</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handle_for_bl</span>
<span class="cm">        * @param {Object} args The arguments from the CustomEvent.</span>
<span class="cm">        * @description Handles the sizes for the Bottom Left handle.</span>
<span class="cm">        */</span>
        <span class="nx">_handle_for_bl</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Handle BL&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newW</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setWidth</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newH</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setHeight</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">l</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newW</span> <span class="o">-</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">resize</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="nx">newH</span><span class="p">,</span> <span class="nx">newW</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="nx">l</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handle_for_tl</span>
<span class="cm">        * @param {Object} args The arguments from the CustomEvent.</span>
<span class="cm">        * @description Handles the sizes for the Top Left handle.</span>
<span class="cm">        */</span>
        <span class="nx">_handle_for_tl</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Handle TL&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newW</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setWidth</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newH</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setHeight</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">t</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newH</span> <span class="o">-</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">l</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newW</span> <span class="o">-</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">resize</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="nx">newH</span><span class="p">,</span> <span class="nx">newW</span><span class="p">,</span> <span class="nx">t</span><span class="p">,</span> <span class="nx">l</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handle_for_tr</span>
<span class="cm">        * @param {Object} args The arguments from the CustomEvent.</span>
<span class="cm">        * @description Handles the sizes for the Top Right handle.</span>
<span class="cm">        */</span>
        <span class="nx">_handle_for_tr</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Handle TR&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newW</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setWidth</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newH</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setHeight</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">t</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newH</span> <span class="o">-</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">resize</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="nx">newH</span><span class="p">,</span> <span class="nx">newW</span><span class="p">,</span> <span class="nx">t</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handle_for_r</span>
<span class="cm">        * @param {Object} args The arguments from the CustomEvent.</span>
<span class="cm">        * @description Handles the sizes for the Right handle.</span>
<span class="cm">        */</span>
        <span class="nx">_handle_for_r</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Handle R&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">.</span><span class="nx">r</span><span class="p">.</span><span class="nx">setYConstraint</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">0</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newW</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setWidth</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">resize</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="nx">newW</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handle_for_l</span>
<span class="cm">        * @param {Object} args The arguments from the CustomEvent.</span>
<span class="cm">        * @description Handles the sizes for the Left handle.</span>
<span class="cm">        */</span>
        <span class="nx">_handle_for_l</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Handle L&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">.</span><span class="nx">l</span><span class="p">.</span><span class="nx">setYConstraint</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">0</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newW</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setWidth</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">l</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newW</span> <span class="o">-</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">resize</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="nx">newW</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="nx">l</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handle_for_b</span>
<span class="cm">        * @param {Object} args The arguments from the CustomEvent.</span>
<span class="cm">        * @description Handles the sizes for the Bottom handle.</span>
<span class="cm">        */</span>
        <span class="nx">_handle_for_b</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Handle B&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">.</span><span class="nx">b</span><span class="p">.</span><span class="nx">setXConstraint</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">0</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newH</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setHeight</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">resize</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="nx">newH</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handle_for_t</span>
<span class="cm">        * @param {Object} args The arguments from the CustomEvent.</span>
<span class="cm">        * @description Handles the sizes for the Top handle.</span>
<span class="cm">        */</span>
        <span class="nx">_handle_for_t</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Handle T&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">.</span><span class="nx">t</span><span class="p">.</span><span class="nx">setXConstraint</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">0</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">newH</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_setHeight</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">t</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newH</span> <span class="o">-</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">resize</span><span class="p">(</span><span class="nx">args</span><span class="p">.</span><span class="nx">e</span><span class="p">,</span> <span class="nx">newH</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="nx">t</span><span class="p">,</span> <span class="mi">0</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _setWidth</span>
<span class="cm">        * @param {Event} ev The mouse event.</span>
<span class="cm">        * @param {Boolean} flip Argument to determine the direction of the movement.</span>
<span class="cm">        * @description Calculates the width based on the mouse event.</span>
<span class="cm">        * @return {Number} The new value</span>
<span class="cm">        */</span>
        <span class="nx">_setWidth</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">flip</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Set width based on Event&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">xy</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">xy</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span>
                <span class="nx">w</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span>
                <span class="nx">x</span> <span class="o">=</span> <span class="nx">Event</span><span class="p">.</span><span class="nx">getPageX</span><span class="p">(</span><span class="nx">ev</span><span class="p">),</span>
                <span class="nx">nw</span> <span class="o">=</span> <span class="p">(</span><span class="nx">x</span> <span class="o">-</span> <span class="nx">xy</span><span class="p">);</span>

                <span class="k">if</span> <span class="p">(</span><span class="nx">flip</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">nw</span> <span class="o">=</span> <span class="p">(</span><span class="nx">xy</span> <span class="o">-</span> <span class="nx">x</span><span class="p">)</span> <span class="o">+</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">);</span>
                <span class="p">}</span>
                
                <span class="nx">nw</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_snapTick</span><span class="p">(</span><span class="nx">nw</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;xTicks&#39;</span><span class="p">));</span>
                <span class="nx">nw</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_checkWidth</span><span class="p">(</span><span class="nx">nw</span><span class="p">);</span>
            <span class="k">return</span> <span class="nx">nw</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _checkWidth</span>
<span class="cm">        * @param {Number} w The width to check.</span>
<span class="cm">        * @description Checks the value passed against the maxWidth and minWidth.</span>
<span class="cm">        * @return {Number} the new value</span>
<span class="cm">        */</span>
        <span class="nx">_checkWidth</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">w</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Checking the min/max width&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minWidth&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">w</span> <span class="o">&lt;=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minWidth&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Using minWidth&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="nx">w</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minWidth&#39;</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxWidth&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">w</span> <span class="o">&gt;=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxWidth&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Using Max Width&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="nx">w</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxWidth&#39;</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="nx">w</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _checkHeight</span>
<span class="cm">        * @param {Number} h The height to check.</span>
<span class="cm">        * @description Checks the value passed against the maxHeight and minHeight.</span>
<span class="cm">        * @return {Number} The new value</span>
<span class="cm">        */</span>
        <span class="nx">_checkHeight</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">h</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Checking the min/max height&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minHeight&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">h</span> <span class="o">&lt;=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minHeight&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Using minHeight&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="nx">h</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;minHeight&#39;</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxHeight&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">h</span> <span class="o">&gt;=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxHeight&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;using maxHeight&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
                    <span class="nx">h</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxHeight&#39;</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="nx">h</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _setHeight</span>
<span class="cm">        * @param {Event} ev The mouse event.</span>
<span class="cm">        * @param {Boolean} flip Argument to determine the direction of the movement.</span>
<span class="cm">        * @description Calculated the height based on the mouse event.</span>
<span class="cm">        * @return {Number} The new value</span>
<span class="cm">        */</span>
        <span class="nx">_setHeight</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">,</span> <span class="nx">flip</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Setting the height based on the Event&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">xy</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">xy</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span>
                <span class="nx">h</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span>
                <span class="nx">y</span> <span class="o">=</span> <span class="nx">Event</span><span class="p">.</span><span class="nx">getPageY</span><span class="p">(</span><span class="nx">ev</span><span class="p">),</span>
                <span class="nx">nh</span> <span class="o">=</span> <span class="p">(</span><span class="nx">y</span> <span class="o">-</span> <span class="nx">xy</span><span class="p">);</span>

                <span class="k">if</span> <span class="p">(</span><span class="nx">flip</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">nh</span> <span class="o">=</span> <span class="p">(</span><span class="nx">xy</span> <span class="o">-</span> <span class="nx">y</span><span class="p">)</span> <span class="o">+</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="nx">nh</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_snapTick</span><span class="p">(</span><span class="nx">nh</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;yTicks&#39;</span><span class="p">));</span>
                <span class="nx">nh</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_checkHeight</span><span class="p">(</span><span class="nx">nh</span><span class="p">);</span>
                
            <span class="k">return</span> <span class="nx">nh</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _snapTick</span>
<span class="cm">        * @param {Number} size The size to tick against.</span>
<span class="cm">        * @param {Number} pix The tick pixels.</span>
<span class="cm">        * @description Adjusts the number based on the ticks used.</span>
<span class="cm">        * @return {Number} the new snapped position</span>
<span class="cm">        */</span>
        <span class="nx">_snapTick</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">size</span><span class="p">,</span> <span class="nx">pix</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Snapping to ticks&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">size</span> <span class="o">||</span> <span class="o">!</span><span class="nx">pix</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">return</span> <span class="nx">size</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">_s</span> <span class="o">=</span> <span class="nx">size</span><span class="p">;</span>
            <span class="kd">var</span> <span class="nx">_x</span> <span class="o">=</span> <span class="nx">size</span> <span class="o">%</span> <span class="nx">pix</span><span class="p">;</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">_x</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">_x</span> <span class="o">&gt;</span> <span class="p">(</span><span class="nx">pix</span> <span class="o">/</span> <span class="mi">2</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">_s</span> <span class="o">=</span> <span class="nx">size</span> <span class="o">+</span> <span class="p">(</span><span class="nx">pix</span> <span class="o">-</span> <span class="nx">_x</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">_s</span> <span class="o">=</span> <span class="nx">size</span> <span class="o">-</span> <span class="nx">_x</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="nx">_s</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/** </span>
<span class="cm">        * @private</span>
<span class="cm">        * @method init</span>
<span class="cm">        * @description The Resize class&#39;s initialization method</span>
<span class="cm">        */</span>        
        <span class="nx">init</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">p_oElement</span><span class="p">,</span> <span class="nx">p_oAttributes</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;init&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_locked</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span> <span class="o">=</span> <span class="p">{</span>
                <span class="nx">xy</span><span class="o">:</span> <span class="p">[],</span>
                <span class="nx">height</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
                <span class="nx">width</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
                <span class="nx">top</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
                <span class="nx">left</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
                <span class="nx">offsetHeight</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
                <span class="nx">offsetWidth</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
                <span class="nx">start</span><span class="o">:</span> <span class="p">{</span>
                    <span class="nx">height</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
                    <span class="nx">width</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
                    <span class="nx">top</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
                    <span class="nx">left</span><span class="o">:</span> <span class="mi">0</span>
                <span class="p">}</span>
            <span class="p">};</span>

            <span class="nx">Resize</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">init</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">p_oElement</span><span class="p">,</span> <span class="nx">p_oAttributes</span><span class="p">);</span>

            <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;setSize&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;setSize&#39;</span><span class="p">));</span>

            <span class="k">if</span> <span class="p">(</span><span class="nx">p_oAttributes</span><span class="p">.</span><span class="nx">height</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">,</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">p_oAttributes</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span> <span class="mi">10</span><span class="p">));</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">h</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">h</span> <span class="o">==</span> <span class="s1">&#39;auto&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">,</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">offsetHeight</span><span class="p">,</span> <span class="mi">10</span><span class="p">));</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">p_oAttributes</span><span class="p">.</span><span class="nx">width</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">,</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">p_oAttributes</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="mi">10</span><span class="p">));</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">w</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">w</span> <span class="o">==</span> <span class="s1">&#39;auto&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">,</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">offsetWidth</span><span class="p">,</span> <span class="mi">10</span><span class="p">));</span>
                <span class="p">}</span>
            <span class="p">}</span>
            
            <span class="kd">var</span> <span class="nx">id</span> <span class="o">=</span> <span class="nx">p_oElement</span><span class="p">;</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isString</span><span class="p">(</span><span class="nx">id</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">id</span> <span class="o">=</span> <span class="nx">D</span><span class="p">.</span><span class="nx">generateId</span><span class="p">(</span><span class="nx">id</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="nx">Resize</span><span class="p">.</span><span class="nx">_instances</span><span class="p">[</span><span class="nx">id</span><span class="p">]</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span>

            <span class="k">this</span><span class="p">.</span><span class="nx">_active</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            
            <span class="k">this</span><span class="p">.</span><span class="nx">_createWrap</span><span class="p">();</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_createProxy</span><span class="p">();</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_createHandles</span><span class="p">();</span>

        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method getProxyEl</span>
<span class="cm">        * @description Get the HTML reference for the proxy, returns null if no proxy.</span>
<span class="cm">        * @return {HTMLElement} The proxy element</span>
<span class="cm">        */</span>      
        <span class="nx">getProxyEl</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method getWrapEl</span>
<span class="cm">        * @description Get the HTML reference for the wrap element, returns the current element if not wrapped.</span>
<span class="cm">        * @return {HTMLElement} The wrap element</span>
<span class="cm">        */</span>      
        <span class="nx">getWrapEl</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method getStatusEl</span>
<span class="cm">        * @description Get the HTML reference for the status element.</span>
<span class="cm">        * @return {HTMLElement} The status element</span>
<span class="cm">        */</span>      
        <span class="nx">getStatusEl</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method getActiveHandleEl</span>
<span class="cm">        * @description Get the HTML reference for the currently active resize handle.</span>
<span class="cm">        * @return {HTMLElement} The handle element that is active</span>
<span class="cm">        */</span>      
        <span class="nx">getActiveHandleEl</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_currentHandle</span><span class="p">];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method isActive</span>
<span class="cm">        * @description Returns true or false if a resize operation is currently active on the element.</span>
<span class="cm">        * @return {Boolean}</span>
<span class="cm">        */</span>      
        <span class="nx">isActive</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="p">((</span><span class="k">this</span><span class="p">.</span><span class="nx">_active</span><span class="p">)</span> <span class="o">?</span> <span class="kc">true</span> <span class="o">:</span> <span class="kc">false</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method initAttributes</span>
<span class="cm">        * @description Initializes all of the configuration attributes used to create a resizable element.</span>
<span class="cm">        * @param {Object} attr Object literal specifying a set of </span>
<span class="cm">        * configuration attributes used to create the utility.</span>
<span class="cm">        */</span>      
        <span class="nx">initAttributes</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">attr</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">Resize</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">initAttributes</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">attr</span><span class="p">);</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute useShim</span>
<span class="cm">            * @description This setting will be passed to the DragDrop instances on the resize handles and for the draggable property.</span>
<span class="cm">            * This property should be used if you want the resize handles to work over iframe and other elements.</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;useShim&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="p">((</span><span class="nx">attr</span><span class="p">.</span><span class="nx">useShim</span> <span class="o">===</span> <span class="kc">true</span><span class="p">)</span> <span class="o">?</span> <span class="kc">true</span> <span class="o">:</span> <span class="kc">false</span><span class="p">),</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span><span class="p">,</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">u</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="k">in</span> <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">,</span> <span class="nx">i</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_dds</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">useShim</span> <span class="o">=</span> <span class="nx">u</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">useShim</span> <span class="o">=</span> <span class="nx">u</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">});</span>
            <span class="cm">/**</span>
<span class="cm">            * @attribute setSize</span>
<span class="cm">            * @description Set the size of the resized element, if set to false the element will not be auto resized,</span>
<span class="cm">            * the resize event will contain the dimensions so the end user can resize it on their own.</span>
<span class="cm">            * This setting will only work with proxy set to true and animate set to false.</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;setSize&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="p">((</span><span class="nx">attr</span><span class="p">.</span><span class="nx">setSize</span> <span class="o">===</span> <span class="kc">false</span><span class="p">)</span> <span class="o">?</span> <span class="kc">false</span> <span class="o">:</span> <span class="kc">true</span><span class="p">),</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute wrap</span>
<span class="cm">            * @description Should we wrap the element</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;wrap&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">writeOnce</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span><span class="p">,</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">wrap</span> <span class="o">||</span> <span class="kc">false</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute handles</span>
<span class="cm">            * @description The handles to use (any combination of): &#39;t&#39;, &#39;b&#39;, &#39;r&#39;, &#39;l&#39;, &#39;bl&#39;, &#39;br&#39;, &#39;tl&#39;, &#39;tr&#39;. Defaults to: [&#39;r&#39;, &#39;b&#39;, &#39;br&#39;].</span>
<span class="cm">            * Can use a shortcut of All. Note: 8 way resizing should be done on an element that is absolutely positioned.</span>
<span class="cm">            * @type Array</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;handles&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">writeOnce</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">handles</span> <span class="o">||</span> <span class="p">[</span><span class="s1">&#39;r&#39;</span><span class="p">,</span> <span class="s1">&#39;b&#39;</span><span class="p">,</span> <span class="s1">&#39;br&#39;</span><span class="p">],</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">handles</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isString</span><span class="p">(</span><span class="nx">handles</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="nx">handles</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">==</span> <span class="s1">&#39;all&#39;</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">handles</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;t&#39;</span><span class="p">,</span> <span class="s1">&#39;b&#39;</span><span class="p">,</span> <span class="s1">&#39;r&#39;</span><span class="p">,</span> <span class="s1">&#39;l&#39;</span><span class="p">,</span> <span class="s1">&#39;bl&#39;</span><span class="p">,</span> <span class="s1">&#39;br&#39;</span><span class="p">,</span> <span class="s1">&#39;tl&#39;</span><span class="p">,</span> <span class="s1">&#39;tr&#39;</span><span class="p">];</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="nx">handles</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">handles</span> <span class="o">=</span> <span class="nx">handles</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/, /g</span><span class="p">,</span> <span class="s1">&#39;,&#39;</span><span class="p">);</span>
                        <span class="nx">handles</span> <span class="o">=</span> <span class="nx">handles</span><span class="p">.</span><span class="nx">split</span><span class="p">(</span><span class="s1">&#39;,&#39;</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_configs</span><span class="p">.</span><span class="nx">handles</span><span class="p">.</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">handles</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute width</span>
<span class="cm">            * @description The width of the element</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">width</span> <span class="o">||</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">),</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isNumber</span><span class="p">,</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">width</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">width</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">width</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">width</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;setSize&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">,</span> <span class="nx">width</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">);</span>
                        <span class="p">}</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="nx">width</span><span class="p">;</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_configs</span><span class="p">.</span><span class="nx">width</span><span class="p">.</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">width</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute height</span>
<span class="cm">            * @description The height of the element</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">height</span> <span class="o">||</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">),</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isNumber</span><span class="p">,</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">height</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">height</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">height</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">height</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;setSize&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">,</span> <span class="nx">height</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">);</span>
                        <span class="p">}</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_cache</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="nx">height</span><span class="p">;</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_configs</span><span class="p">.</span><span class="nx">height</span><span class="p">.</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">height</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute minWidth</span>
<span class="cm">            * @description The minimum width of the element</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;minWidth&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">minWidth</span> <span class="o">||</span> <span class="mi">15</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isNumber</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute minHeight</span>
<span class="cm">            * @description The minimum height of the element</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;minHeight&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">minHeight</span> <span class="o">||</span> <span class="mi">15</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isNumber</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute maxWidth</span>
<span class="cm">            * @description The maximum width of the element</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;maxWidth&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">maxWidth</span> <span class="o">||</span> <span class="mi">10000</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isNumber</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute maxHeight</span>
<span class="cm">            * @description The maximum height of the element</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;maxHeight&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">maxHeight</span> <span class="o">||</span> <span class="mi">10000</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isNumber</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute minY</span>
<span class="cm">            * @description The minimum y coord of the element</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;minY&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">minY</span> <span class="o">||</span> <span class="kc">false</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute minX</span>
<span class="cm">            * @description The minimum x coord of the element</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;minX&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">minX</span> <span class="o">||</span> <span class="kc">false</span>
            <span class="p">});</span>
            <span class="cm">/**</span>
<span class="cm">            * @attribute maxY</span>
<span class="cm">            * @description The max y coord of the element</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;maxY&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">maxY</span> <span class="o">||</span> <span class="kc">false</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute maxX</span>
<span class="cm">            * @description The max x coord of the element</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;maxX&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">maxX</span> <span class="o">||</span> <span class="kc">false</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute animate</span>
<span class="cm">            * @description Should be use animation to resize the element (can only be used if we use proxy).</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;animate&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">animate</span> <span class="o">||</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">ret</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Anim</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">ret</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">return</span> <span class="nx">ret</span><span class="p">;</span>
                <span class="p">}</span>               
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute animateEasing</span>
<span class="cm">            * @description The Easing to apply to the animation.</span>
<span class="cm">            * @type Object</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;animateEasing&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">animateEasing</span> <span class="o">||</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">easing</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Easing</span> <span class="o">&amp;&amp;</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Easing</span><span class="p">.</span><span class="nx">easeOut</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">easing</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Easing</span><span class="p">.</span><span class="nx">easeOut</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">return</span> <span class="nx">easing</span><span class="p">;</span>
                <span class="p">}()</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute animateDuration</span>
<span class="cm">            * @description The Duration to apply to the animation.</span>
<span class="cm">            * @type Number</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;animateDuration&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">animateDuration</span> <span class="o">||</span> <span class="mf">0.5</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute proxy</span>
<span class="cm">            * @description Resize a proxy element instead of the real element.</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;proxy&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">proxy</span> <span class="o">||</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute ratio</span>
<span class="cm">            * @description Maintain the element&#39;s ratio when resizing.</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;ratio&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">ratio</span> <span class="o">||</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute ghost</span>
<span class="cm">            * @description Apply an opacity filter to the element being resized (only works with proxy).</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;ghost&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">ghost</span> <span class="o">||</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute draggable</span>
<span class="cm">            * @description A convienence method to make the element draggable</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;draggable&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">draggable</span> <span class="o">||</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span><span class="p">,</span>
                <span class="nx">method</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">dd</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_setupDragDrop</span><span class="p">();</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
                                <span class="c1">//activating an old DD instance..</span>
                                <span class="nx">D</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_DRAG</span><span class="p">);</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">DDM</span><span class="p">.</span><span class="nx">regDragDrop</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">,</span> <span class="s2">&quot;default&quot;</span><span class="p">);</span>
                            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                                <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_DRAG</span><span class="p">);</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">unreg</span><span class="p">();</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute hover</span>
<span class="cm">            * @description Only show the handles when they are being moused over.</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;hover&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">hover</span> <span class="o">||</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute hiddenHandles</span>
<span class="cm">            * @description Don&#39;t show the handles, just use the cursor to the user.</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;hiddenHandles&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">hiddenHandles</span> <span class="o">||</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute knobHandles</span>
<span class="cm">            * @description Use the smaller handles, instead if the full size handles.</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;knobHandles&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">knobHandles</span> <span class="o">||</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute xTicks</span>
<span class="cm">            * @description The number of x ticks to span the resize to.</span>
<span class="cm">            * @type Number or False</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;xTicks&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">xTicks</span> <span class="o">||</span> <span class="kc">false</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute yTicks</span>
<span class="cm">            * @description The number of y ticks to span the resize to.</span>
<span class="cm">            * @type Number or False</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;yTicks&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">yTicks</span> <span class="o">||</span> <span class="kc">false</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute status</span>
<span class="cm">            * @description Show the status (new size) of the resize.</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;status&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">status</span> <span class="o">||</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute autoRatio</span>
<span class="cm">            * @description Using the shift key during a resize will toggle the ratio config.</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;autoRatio&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">autoRatio</span> <span class="o">||</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">validator</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isBoolean</span>
            <span class="p">});</span>

        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method destroy</span>
<span class="cm">        * @description Destroys the resize object and all of it&#39;s elements &amp; listeners.</span>
<span class="cm">        */</span>        
        <span class="nx">destroy</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Destroying Resize&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Resize&#39;</span><span class="p">);</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">h</span> <span class="k">in</span> <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">,</span> <span class="nx">h</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">Event</span><span class="p">.</span><span class="nx">purgeElement</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">]);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">].</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_handles</span><span class="p">[</span><span class="nx">h</span><span class="p">]);</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_proxy</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_status</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">unreg</span><span class="p">();</span>
                <span class="nx">D</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CSS_DRAG</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span> <span class="o">!=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="s1">&#39;position&#39;</span><span class="p">,</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_positioned</span> <span class="o">?</span> <span class="s1">&#39;absolute&#39;</span> <span class="o">:</span> <span class="s1">&#39;relative&#39;</span><span class="p">));</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="s1">&#39;top&#39;</span><span class="p">,</span> <span class="nx">D</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;top&#39;</span><span class="p">));</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="s1">&#39;left&#39;</span><span class="p">,</span><span class="nx">D</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">,</span> <span class="s1">&#39;left&#39;</span><span class="p">));</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">replaceChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">),</span> <span class="k">this</span><span class="p">.</span><span class="nx">_wrap</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">CSS_RESIZE</span><span class="p">);</span>

            <span class="k">delete</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Resize</span><span class="p">.</span><span class="nx">_instances</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)];</span>
            <span class="c1">//Brutal Object Destroy</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="k">in</span> <span class="k">this</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">i</span><span class="p">))</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">[</span><span class="nx">i</span><span class="p">]</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                    <span class="k">delete</span> <span class="k">this</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
                <span class="p">}</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method toString</span>
<span class="cm">        * @description Returns a string representing the Resize Object.</span>
<span class="cm">        * @return {String}</span>
<span class="cm">        */</span>        
        <span class="nx">toString</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">return</span> <span class="s1">&#39;Resize (#&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;)&#39;</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="s1">&#39;Resize Utility&#39;</span><span class="p">;</span>
        <span class="p">}</span>
    <span class="p">});</span>

    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Resize</span> <span class="o">=</span> <span class="nx">Resize</span><span class="p">;</span>
 
<span class="cm">/**</span>
<span class="cm">* @event dragEvent</span>
<span class="cm">* @description Fires when the &lt;a href=&quot;YAHOO.util.DragDrop.html&quot;&gt;YAHOO.util.DragDrop&lt;/a&gt; dragEvent is fired for the config option draggable.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event startResize</span>
<span class="cm">* @description Fires when a resize action is started.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event endResize</span>
<span class="cm">* @description Fires when the mouseUp event from the Drag Instance fires.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event resize</span>
<span class="cm">* @description Fires on every element resize (only fires once when used with proxy config setting).</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event beforeResize</span>
<span class="cm">* @description Fires before every element resize after the size calculations, returning false will stop the resize.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event proxyResize</span>
<span class="cm">* @description Fires on every proxy resize (only fires when used with proxy config setting).</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>

<span class="p">})();</span>
</pre></div>

                    </div>
			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_element-delegate.html" title="element-delegate">element-delegate</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_event-delegate.html" title="event-delegate">event-delegate</a></li>
                                <li class=""><a href="module_event-mouseenter.html" title="event-mouseenter">event-mouseenter</a></li>
                                <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_progressbar.html" title="progressbar">progressbar</a></li>
                                <li class="selected"><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_storage.html" title="Storage">Storage</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_swf.html" title="swf">swf</a></li>
                                <li class=""><a href="module_swfdetect.html" title="swfdetect">swfdetect</a></li>
                                <li class=""><a href="module_swfstore.html" title="swfstore">swfstore</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.util.Resize.html" title="YAHOO.util.Resize">YAHOO.util.Resize</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>Files</h4>
                        <ul class="content">        
                                <li class="selected"><a href="resize.js.html" title="resize.js">resize.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2011 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">

    var ALL_YUI_PROPS = [{"access": "private", "host": "YAHOO.util.Resize", "name": "_active", "url": "YAHOO.util.Resize.html#property__active", "type": "property"}, {"access": "", "host": "YAHOO.util.Resize", "name": "animate", "url": "YAHOO.util.Resize.html#config_animate", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "animateChange", "url": "YAHOO.util.Resize.html#event_animateChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "animateDuration", "url": "YAHOO.util.Resize.html#config_animateDuration", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "animateDurationChange", "url": "YAHOO.util.Resize.html#event_animateDurationChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "animateEasing", "url": "YAHOO.util.Resize.html#config_animateEasing", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "animateEasingChange", "url": "YAHOO.util.Resize.html#event_animateEasingChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "autoRatio", "url": "YAHOO.util.Resize.html#config_autoRatio", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "autoRatioChange", "url": "YAHOO.util.Resize.html#event_autoRatioChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeAnimateChange", "url": "YAHOO.util.Resize.html#event_beforeAnimateChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeAnimateDurationChange", "url": "YAHOO.util.Resize.html#event_beforeAnimateDurationChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeAnimateEasingChange", "url": "YAHOO.util.Resize.html#event_beforeAnimateEasingChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeAutoRatioChange", "url": "YAHOO.util.Resize.html#event_beforeAutoRatioChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeDraggableChange", "url": "YAHOO.util.Resize.html#event_beforeDraggableChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeGhostChange", "url": "YAHOO.util.Resize.html#event_beforeGhostChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeHandlesChange", "url": "YAHOO.util.Resize.html#event_beforeHandlesChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeHeightChange", "url": "YAHOO.util.Resize.html#event_beforeHeightChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeHiddenHandlesChange", "url": "YAHOO.util.Resize.html#event_beforeHiddenHandlesChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeHoverChange", "url": "YAHOO.util.Resize.html#event_beforeHoverChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeKnobHandlesChange", "url": "YAHOO.util.Resize.html#event_beforeKnobHandlesChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeMaxHeightChange", "url": "YAHOO.util.Resize.html#event_beforeMaxHeightChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeMaxWidthChange", "url": "YAHOO.util.Resize.html#event_beforeMaxWidthChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeMaxXChange", "url": "YAHOO.util.Resize.html#event_beforeMaxXChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeMaxYChange", "url": "YAHOO.util.Resize.html#event_beforeMaxYChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeMinHeightChange", "url": "YAHOO.util.Resize.html#event_beforeMinHeightChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeMinWidthChange", "url": "YAHOO.util.Resize.html#event_beforeMinWidthChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeMinXChange", "url": "YAHOO.util.Resize.html#event_beforeMinXChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeMinYChange", "url": "YAHOO.util.Resize.html#event_beforeMinYChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeProxyChange", "url": "YAHOO.util.Resize.html#event_beforeProxyChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeRatioChange", "url": "YAHOO.util.Resize.html#event_beforeRatioChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeResize", "url": "YAHOO.util.Resize.html#event_beforeResize", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeSetSizeChange", "url": "YAHOO.util.Resize.html#event_beforeSetSizeChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeStatusChange", "url": "YAHOO.util.Resize.html#event_beforeStatusChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeUseShimChange", "url": "YAHOO.util.Resize.html#event_beforeUseShimChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeWidthChange", "url": "YAHOO.util.Resize.html#event_beforeWidthChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeWrapChange", "url": "YAHOO.util.Resize.html#event_beforeWrapChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeXTicksChange", "url": "YAHOO.util.Resize.html#event_beforeXTicksChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "beforeYTicksChange", "url": "YAHOO.util.Resize.html#event_beforeYTicksChange", "type": "event"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "browser", "url": "YAHOO.util.Resize.html#property_browser", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_cache", "url": "YAHOO.util.Resize.html#property__cache", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_checkHeight", "url": "YAHOO.util.Resize.html#method__checkHeight", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_checkWidth", "url": "YAHOO.util.Resize.html#method__checkWidth", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_createHandles", "url": "YAHOO.util.Resize.html#method__createHandles", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_createProxy", "url": "YAHOO.util.Resize.html#method__createProxy", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_createWrap", "url": "YAHOO.util.Resize.html#method__createWrap", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_DRAG", "url": "YAHOO.util.Resize.html#property_CSS_DRAG", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_GHOST", "url": "YAHOO.util.Resize.html#property_CSS_GHOST", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_HANDLE", "url": "YAHOO.util.Resize.html#property_CSS_HANDLE", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_HIDDEN", "url": "YAHOO.util.Resize.html#property_CSS_HIDDEN", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_HOVER", "url": "YAHOO.util.Resize.html#property_CSS_HOVER", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_KNOB", "url": "YAHOO.util.Resize.html#property_CSS_KNOB", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_PROXY", "url": "YAHOO.util.Resize.html#property_CSS_PROXY", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_RESIZE", "url": "YAHOO.util.Resize.html#property_CSS_RESIZE", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_RESIZING", "url": "YAHOO.util.Resize.html#property_CSS_RESIZING", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_STATUS", "url": "YAHOO.util.Resize.html#property_CSS_STATUS", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "CSS_WRAP", "url": "YAHOO.util.Resize.html#property_CSS_WRAP", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_currentDD", "url": "YAHOO.util.Resize.html#property__currentDD", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_currentHandle", "url": "YAHOO.util.Resize.html#property__currentHandle", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "dd", "url": "YAHOO.util.Resize.html#property_dd", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_dds", "url": "YAHOO.util.Resize.html#property__dds", "type": "property"}, {"access": "", "host": "YAHOO.util.Resize", "name": "destroy", "url": "YAHOO.util.Resize.html#method_destroy", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "dragEvent", "url": "YAHOO.util.Resize.html#event_dragEvent", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "draggable", "url": "YAHOO.util.Resize.html#config_draggable", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "draggableChange", "url": "YAHOO.util.Resize.html#event_draggableChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "endResize", "url": "YAHOO.util.Resize.html#event_endResize", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "getActiveHandleEl", "url": "YAHOO.util.Resize.html#method_getActiveHandleEl", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "getProxyEl", "url": "YAHOO.util.Resize.html#method_getProxyEl", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "getResizeById", "url": "YAHOO.util.Resize.html#method_getResizeById", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "getStatusEl", "url": "YAHOO.util.Resize.html#method_getStatusEl", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "getWrapEl", "url": "YAHOO.util.Resize.html#method_getWrapEl", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "ghost", "url": "YAHOO.util.Resize.html#config_ghost", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "ghostChange", "url": "YAHOO.util.Resize.html#event_ghostChange", "type": "event"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handle_for_b", "url": "YAHOO.util.Resize.html#method__handle_for_b", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handle_for_bl", "url": "YAHOO.util.Resize.html#method__handle_for_bl", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handle_for_br", "url": "YAHOO.util.Resize.html#method__handle_for_br", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handle_for_l", "url": "YAHOO.util.Resize.html#method__handle_for_l", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handle_for_r", "url": "YAHOO.util.Resize.html#method__handle_for_r", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handle_for_t", "url": "YAHOO.util.Resize.html#method__handle_for_t", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handle_for_tl", "url": "YAHOO.util.Resize.html#method__handle_for_tl", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handle_for_tr", "url": "YAHOO.util.Resize.html#method__handle_for_tr", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handleMouseDown", "url": "YAHOO.util.Resize.html#method__handleMouseDown", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handleMouseOut", "url": "YAHOO.util.Resize.html#method__handleMouseOut", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handleMouseOver", "url": "YAHOO.util.Resize.html#method__handleMouseOver", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handleMouseUp", "url": "YAHOO.util.Resize.html#method__handleMouseUp", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handles", "url": "YAHOO.util.Resize.html#property__handles", "type": "property"}, {"access": "", "host": "YAHOO.util.Resize", "name": "handles", "url": "YAHOO.util.Resize.html#config_handles", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "handlesChange", "url": "YAHOO.util.Resize.html#event_handlesChange", "type": "event"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_handleStartDrag", "url": "YAHOO.util.Resize.html#method__handleStartDrag", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "height", "url": "YAHOO.util.Resize.html#config_height", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "heightChange", "url": "YAHOO.util.Resize.html#event_heightChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "hiddenHandles", "url": "YAHOO.util.Resize.html#config_hiddenHandles", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "hiddenHandlesChange", "url": "YAHOO.util.Resize.html#event_hiddenHandlesChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "hover", "url": "YAHOO.util.Resize.html#config_hover", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "hoverChange", "url": "YAHOO.util.Resize.html#event_hoverChange", "type": "event"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_ieSelectBack", "url": "YAHOO.util.Resize.html#property__ieSelectBack", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_ieSelectFix", "url": "YAHOO.util.Resize.html#method__ieSelectFix", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "init", "url": "YAHOO.util.Resize.html#method_init", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "initAttributes", "url": "YAHOO.util.Resize.html#method_initAttributes", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_instances", "url": "YAHOO.util.Resize.html#property__instances", "type": "property"}, {"access": "", "host": "YAHOO.util.Resize", "name": "isActive", "url": "YAHOO.util.Resize.html#method_isActive", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "isLocked", "url": "YAHOO.util.Resize.html#method_isLocked", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "knobHandles", "url": "YAHOO.util.Resize.html#config_knobHandles", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "knobHandlesChange", "url": "YAHOO.util.Resize.html#event_knobHandlesChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "lock", "url": "YAHOO.util.Resize.html#method_lock", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_locked", "url": "YAHOO.util.Resize.html#property__locked", "type": "property"}, {"access": "", "host": "YAHOO.util.Resize", "name": "maxHeight", "url": "YAHOO.util.Resize.html#config_maxHeight", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "maxHeightChange", "url": "YAHOO.util.Resize.html#event_maxHeightChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "maxWidth", "url": "YAHOO.util.Resize.html#config_maxWidth", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "maxWidthChange", "url": "YAHOO.util.Resize.html#event_maxWidthChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "maxX", "url": "YAHOO.util.Resize.html#config_maxX", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "maxXChange", "url": "YAHOO.util.Resize.html#event_maxXChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "maxY", "url": "YAHOO.util.Resize.html#config_maxY", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "maxYChange", "url": "YAHOO.util.Resize.html#event_maxYChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "minHeight", "url": "YAHOO.util.Resize.html#config_minHeight", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "minHeightChange", "url": "YAHOO.util.Resize.html#event_minHeightChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "minWidth", "url": "YAHOO.util.Resize.html#config_minWidth", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "minWidthChange", "url": "YAHOO.util.Resize.html#event_minWidthChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "minX", "url": "YAHOO.util.Resize.html#config_minX", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "minXChange", "url": "YAHOO.util.Resize.html#event_minXChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "minY", "url": "YAHOO.util.Resize.html#config_minY", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "minYChange", "url": "YAHOO.util.Resize.html#event_minYChange", "type": "event"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_positioned", "url": "YAHOO.util.Resize.html#property__positioned", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_proxy", "url": "YAHOO.util.Resize.html#property__proxy", "type": "property"}, {"access": "", "host": "YAHOO.util.Resize", "name": "proxy", "url": "YAHOO.util.Resize.html#config_proxy", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "proxyChange", "url": "YAHOO.util.Resize.html#event_proxyChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "proxyResize", "url": "YAHOO.util.Resize.html#event_proxyResize", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "ratio", "url": "YAHOO.util.Resize.html#config_ratio", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "ratioChange", "url": "YAHOO.util.Resize.html#event_ratioChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "reset", "url": "YAHOO.util.Resize.html#method_reset", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "resize", "url": "YAHOO.util.Resize.html#method_resize", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "resize", "url": "YAHOO.util.Resize.html#event_resize", "type": "event"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_resizeEvent", "url": "YAHOO.util.Resize.html#property__resizeEvent", "type": "property"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_setAutoRatio", "url": "YAHOO.util.Resize.html#method__setAutoRatio", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_setCache", "url": "YAHOO.util.Resize.html#method__setCache", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_setHeight", "url": "YAHOO.util.Resize.html#method__setHeight", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_setRatio", "url": "YAHOO.util.Resize.html#method__setRatio", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "setSize", "url": "YAHOO.util.Resize.html#config_setSize", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "setSizeChange", "url": "YAHOO.util.Resize.html#event_setSizeChange", "type": "event"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_setupDragDrop", "url": "YAHOO.util.Resize.html#method__setupDragDrop", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_setWidth", "url": "YAHOO.util.Resize.html#method__setWidth", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_snapTick", "url": "YAHOO.util.Resize.html#method__snapTick", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "startResize", "url": "YAHOO.util.Resize.html#event_startResize", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "status", "url": "YAHOO.util.Resize.html#config_status", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "statusChange", "url": "YAHOO.util.Resize.html#event_statusChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "toString", "url": "YAHOO.util.Resize.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "unlock", "url": "YAHOO.util.Resize.html#method_unlock", "type": "method"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_updateStatus", "url": "YAHOO.util.Resize.html#method__updateStatus", "type": "method"}, {"access": "", "host": "YAHOO.util.Resize", "name": "useShim", "url": "YAHOO.util.Resize.html#config_useShim", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "useShimChange", "url": "YAHOO.util.Resize.html#event_useShimChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "width", "url": "YAHOO.util.Resize.html#config_width", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "widthChange", "url": "YAHOO.util.Resize.html#event_widthChange", "type": "event"}, {"access": "private", "host": "YAHOO.util.Resize", "name": "_wrap", "url": "YAHOO.util.Resize.html#property__wrap", "type": "property"}, {"access": "", "host": "YAHOO.util.Resize", "name": "wrap", "url": "YAHOO.util.Resize.html#config_wrap", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "wrapChange", "url": "YAHOO.util.Resize.html#event_wrapChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "xTicks", "url": "YAHOO.util.Resize.html#config_xTicks", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "xTicksChange", "url": "YAHOO.util.Resize.html#event_xTicksChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Resize", "name": "yTicks", "url": "YAHOO.util.Resize.html#config_yTicks", "type": "config"}, {"access": "", "host": "YAHOO.util.Resize", "name": "yTicksChange", "url": "YAHOO.util.Resize.html#event_yTicksChange", "type": "event"}];
</script>
</body>
</html>
